import requests

from com.yh.oa.utils.utils import oaHost


class User():

    def login(self, username, password):
        user = {"username": username, "password": password}
        resp = requests.post(oaHost+"/login/noCode", json=user)
        return resp